package com.pengtu.dao.contract;

import java.io.Serializable;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.pengtu.dao.hibernate.HibernateDao;
import com.pengtu.entity.contract.According;

@Repository
public class AccordingDao extends HibernateDao<According, Serializable> {

	public void deleteAccordCid(String cid) {
		String hql = "delete from According where document.id = '" + cid +"'";
		Query query = getSession().createQuery(hql);
		query.executeUpdate();
	}
	
}
